package com.lst.tools.basics.utils;

/**
 * @author: Frank
 * @date: 2019/09/24 13:51
 * @version: V1.0
 */
public class MailUtils {
    public static final String EMAIL_REGULAR_EX = "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.[a-zA-Z0-9]{2,6}$";

    public static boolean checkFormat(String email) {
        return RegexUtils.match(EMAIL_REGULAR_EX, email);
    }
}
